﻿using System.Configuration;
using System.Data.SqlClient;

namespace BoutiquePOS.DAL.Gateway
{
    public class DbGateway
    {
        SqlConnection connection = null;
        SqlCommand commanad = null;
        public DbGateway()
        {
            connection = new SqlConnection(ConfigurationManager.ConnectionStrings["BoutiquePOSConnectionString"].ConnectionString);
            commanad = new SqlCommand();
        }
        public SqlConnection ConnectionObj
        {
            get { return connection; }
        }
        public SqlCommand CommandObj
        {
            get {
                commanad.Connection = connection;
                return commanad; 
                }
        }
    }
}